<template>
  <div class="hello-world">
    <input type="text" :value="modelValue" @input="updateValue($event)" class="input-field" />
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    modelValue: {
      type: String,
      default: ''
    }
  },
  emits: ['update:modelValue'],
  methods: {
    updateValue(event) {
      this.$emit('update:modelValue', event.target.value);
    }
  }
}
</script>

<style scoped>
.hello-world {
  margin: 20px;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  max-width: 300px;
}

.input-field {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.input-field:focus {
  border-color: #007bff;
  outline: none;
}
</style>

